package com.imooc.mall.enums;

import lombok.Getter;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 商品状态，1-在售 2-下架 3-删除
 * @author SaoE
 * @date 2022/2/12 16:48
 */
@Getter
public enum ProductStatusEnum {

    ON_SALE(1),

    OFF_SALE(2),

    DELETE(3),

    ;

    Integer code;

    ProductStatusEnum(Integer code) {
        this.code = code;
    }
}
